-
Notifications
You must be signed in to change notification settings - Fork 4k
Python: vector store simplificatons and some cleanup #12274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: vector store simplificatons and some cleanup #12274
Conversation
@@ -27,8 +27,8 @@ | |||
WeaviateCollection, | |||
) | |||
from semantic_kernel.data import VectorStoreRecordCollection, vectorstoremodel | |||
from semantic_kernel.data.definitions import VectorStoreField | |||
from semantic_kernel.data.vectors import SearchType, VectorSearch | |||
from semantic_kernel.data._definitions import VectorStoreField |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious about the rationale to change it from .definitions
-> ._definitions
? From a "public API" perspective, it feels weird to have the underscore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rethought that part, I really like it now!
aad3d50
into
microsoft:feature-python-vector-stores-preb
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> Simplified the orderby clause for key-less get renamed some files and removed const Moved some things around again :) now we have data.text_search for all things related to text_search and data.vectors for all things vector collections and vector search No dependencies on each other, although they both use _search assets, but they reexport what they use, so that developers can always count on getting all related stuff from data.vectors or data.text_search ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> Simplified the orderby clause for key-less get renamed some files and removed const Moved some things around again :) now we have data.text_search for all things related to text_search and data.vectors for all things vector collections and vector search No dependencies on each other, although they both use _search assets, but they reexport what they use, so that developers can always count on getting all related stuff from data.vectors or data.text_search ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
Motivation and Context
Simplified the orderby clause for key-less get
renamed some files and removed const
Moved some things around again :)
now we have data.text_search for all things related to text_search
and data.vectors for all things vector collections and vector search
No dependencies on each other, although they both use _search assets, but they reexport what they use, so that developers can always count on getting all related stuff from data.vectors or data.text_search
Description
Contribution Checklist